import Vue from 'vue'
import VueRouter from 'vue-router'

<<<<<<< HEAD
Vue.use(VueRouter);
=======
import Home from '@/views/Home'
import Search from '@/views/Search'
import Position from '@/views/Position'
Vue.use(VueRouter)
>>>>>>> lin

const router = new VueRouter({
  mode: 'history',
  // 跳转页面时滚动条在最上面，也就是默认显示页面上面
  scrollBehavior() {
    return {
      x: 0,
      y: 0,
    }
  },
  routes: [
    {
<<<<<<< HEAD
      path: '/',
      redirect: '/home',
=======
      path: "/",
      // redirect: "/home",
      redirect:'/school'
>>>>>>> df4cd4f75903e71dea2e784e5366fc555c6e9f64
      // 重定向
    },
    {
<<<<<<< HEAD
      path: "/home",
      name: "Home",
      component: () => import("@/views/Home/index.vue"),
    },
    {
      path: "/company", //公司
      name: "Company",
      component: () => import("@/views/Company/index.vue"),
=======
      path: '/home',
      name: 'Home',
      component: Home,
    },
    {
      path: '/search',
      name: 'Search',
      component: Search,
>>>>>>> lin
    },
    {
      path: '/position',
      name: 'Position',
      component: Position,
    },
  ],
})

// 导出
export default router
